<?php
class Thumbnail
{
  static function url($src, $width = 100, $height = 75, $zcrop = 1, $quality = 75)
  {
    $m = str_ireplace(dirname(Framework::$BASEDIR.".."), null, Framework::$BASEDIR);
    $m = get_bloginfo('template_url').$m;
    
    $src = str_replace(get_bloginfo('url'), null, $src);
    
    return "$m/Tools/TimThumb.php?src=$src&w=$width&h=$height&zc=$zcrop&q=$quality";
  }
}
